package com.yzt.redpack.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yzt.plugin_widget.RoundImageView;
//import com.yzt.redpackage.R;
import com.yzt.redpack.R;

import com.yzt.zhuju.network.entity.game.GameUserListBean;
import com.yzt.zhuju.network.entity.mine.FriendUserBean;
import com.yzt.zhuju.widget.tuiview.TUIImageView;
import com.yzt.zhuju.widget.widget.ImageLoadManger;

/**
 * author : bob
 * date   : 2023/2/27
 * desc   : 转移主持人适配器
 */
public class GameTransHostAdapter extends BaseQuickAdapter<GameUserListBean, BaseViewHolder> {

    public GameTransHostAdapter() {
        super(R.layout.item_game_trans_host);
    }

    @Override
    protected void convert(BaseViewHolder holder, GameUserListBean item) {

        RoundImageView imgHeader = holder.findView(R.id.img_header);
        ImageLoadManger.loadIv(getContext(), item.getAvatar(), imgHeader, R.mipmap.default_photo);

        TUIImageView imgGender = holder.findView(R.id.img_gender);
        imgGender.setSelected(item.getGender() == 1);
        holder.setText(R.id.tv_name, item.getNickName());
        TUIImageView imgCheck = holder.findView(R.id.img_check);
        imgCheck.setSelected(item.isChecked());

    }
}